package com.snack.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "用户资料更新请求")
public class UserUpdateRequest {
    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "头像URL")
    private String avatar;

    @Schema(description = "性别：0-未知，1-男，2-女")
    private Integer gender;

    @Schema(description = "手机号，可选")
    private String phone;

    @Schema(description = "原密码（MD5加密），修改密码时必填")
    private String oldPassword;

    @Schema(description = "新密码（MD5加密），修改密码时必填")
    private String newPassword;
}
